using System;
using ns27;
using Triton.Game.Mono;

namespace Triton.Game.Mapping
{
	[Attribute38("WebAuth")]
	public class WebAuth : MonoClass
	{
		public enum Status
		{
			Closed,
			Loading,
			ReadyToDisplay,
			Processing,
			Success,
			Error,
			MAX
		}

		public enum Error
		{
			InternalError
		}

		public string m_url => method_4("m_url");

		public Rect m_window => method_2<Rect>("m_window");

		public bool m_show => method_2<bool>("m_show");

		public string m_callbackGameObject => method_4("m_callbackGameObject");

		public bool m_passSelectedTemporaryAccountId => method_2<bool>("m_passSelectedTemporaryAccountId");

		public WebAuth(IntPtr address, string className)
			: base(address, className)
		{
		}

		public WebAuth(IntPtr address)
			: this(address, "WebAuth")
		{
		}

		public static void ClearLoginData()
		{
			MonoClass.smethod_17(TritonHs.MainAssemblyPath, "", "WebAuth", "ClearLoginData");
		}

		public static void DeleteCookies()
		{
			MonoClass.smethod_17(TritonHs.MainAssemblyPath, "", "WebAuth", "DeleteCookies");
		}

		public static void ClearBrowserCache()
		{
			MonoClass.smethod_17(TritonHs.MainAssemblyPath, "", "WebAuth", "ClearBrowserCache");
		}

		public static string GetStoredToken()
		{
			return MonoClass.smethod_12(TritonHs.MainAssemblyPath, "", "WebAuth", "GetStoredToken");
		}

		public static bool SetStoredToken(string str)
		{
			return MonoClass.smethod_14<bool>(TritonHs.MainAssemblyPath, "", "WebAuth", "SetStoredToken", new object[1] { str });
		}

		public static void DeleteStoredToken()
		{
			MonoClass.smethod_17(TritonHs.MainAssemblyPath, "", "WebAuth", "DeleteStoredToken");
		}

		public static void UpdateBreakingNews(string title, string body, string gameObjectName)
		{
			MonoClass.smethod_18(TritonHs.MainAssemblyPath, "", "WebAuth", "UpdateBreakingNews", title, body, gameObjectName);
		}

		public static void UpdateRegionSelectVisualState(bool isVisible)
		{
			MonoClass.smethod_18(TritonHs.MainAssemblyPath, "", "WebAuth", "UpdateRegionSelectVisualState", isVisible);
		}

		public static void GoBackWebPage()
		{
			MonoClass.smethod_17(TritonHs.MainAssemblyPath, "", "WebAuth", "GoBackWebPage");
		}

		public static void LoadWebView(string str, float x, float y, float width, float height, string deviceUniqueIdentifier, string temporaryAccountId, string gameObjectName, string callbackManagerObjectName)
		{
			MonoClass.smethod_18(TritonHs.MainAssemblyPath, "", "WebAuth", "LoadWebView", str, x, y, width, height, deviceUniqueIdentifier, temporaryAccountId, gameObjectName, callbackManagerObjectName);
		}

		public static void CloseWebView()
		{
			MonoClass.smethod_17(TritonHs.MainAssemblyPath, "", "WebAuth", "CloseWebView");
		}

		public static int GetWebViewStatus()
		{
			return MonoClass.smethod_14<int>(TritonHs.MainAssemblyPath, "", "WebAuth", "GetWebViewStatus", Array.Empty<object>());
		}

		public static void ShowWebView(bool show)
		{
			MonoClass.smethod_18(TritonHs.MainAssemblyPath, "", "WebAuth", "ShowWebView", show);
		}

		public static void ClearWebViewCookies()
		{
			MonoClass.smethod_17(TritonHs.MainAssemblyPath, "", "WebAuth", "ClearWebViewCookies");
		}

		public static void ClearURLCache()
		{
			MonoClass.smethod_17(TritonHs.MainAssemblyPath, "", "WebAuth", "ClearURLCache");
		}

		public static string GetWebViewLoginCode()
		{
			return MonoClass.smethod_12(TritonHs.MainAssemblyPath, "", "WebAuth", "GetWebViewLoginCode");
		}

		public static string GetStoredLoginToken()
		{
			return MonoClass.smethod_12(TritonHs.MainAssemblyPath, "", "WebAuth", "GetStoredLoginToken");
		}

		public static bool SetStoredLoginToken(string str)
		{
			return MonoClass.smethod_14<bool>(TritonHs.MainAssemblyPath, "", "WebAuth", "SetStoredLoginToken", new object[1] { str });
		}

		public static void DeleteStoredLoginToken()
		{
			MonoClass.smethod_17(TritonHs.MainAssemblyPath, "", "WebAuth", "DeleteStoredLoginToken");
		}

		public static void SetBreakingNews(string localized_title, string body, string gameObjectName)
		{
			MonoClass.smethod_18(TritonHs.MainAssemblyPath, "", "WebAuth", "SetBreakingNews", localized_title, body, gameObjectName);
		}

		public static void SetRegionSelectVisualState(bool isVisible)
		{
			MonoClass.smethod_18(TritonHs.MainAssemblyPath, "", "WebAuth", "SetRegionSelectVisualState", isVisible);
		}

		public static void GoBack()
		{
			MonoClass.smethod_17(TritonHs.MainAssemblyPath, "", "WebAuth", "GoBack");
		}

		public static void SetWebViewCountryCodeCookie(string countryCode, string domain)
		{
			MonoClass.smethod_18(TritonHs.MainAssemblyPath, "", "WebAuth", "SetWebViewCountryCodeCookie", countryCode, domain);
		}

		public void Load()
		{
			method_8("Load");
		}

		public void Close()
		{
			method_8("Close");
		}

		public Status GetStatus()
		{
			return method_11<Status>("GetStatus", Array.Empty<object>());
		}

		public Error GetError()
		{
			return method_11<Error>("GetError", Array.Empty<object>());
		}

		public string GetLoginCode()
		{
			return method_13("GetLoginCode");
		}

		public void Show()
		{
			method_8("Show");
		}

		public bool IsShown()
		{
			return method_11<bool>("IsShown", Array.Empty<object>());
		}

		public void Hide()
		{
			method_8("Hide");
		}

		public void OnFatalError(FatalErrorMessage message, object userData)
		{
			method_8("OnFatalError", message, userData);
		}
	}
}
